.fx-slider {
  user-select: none;
  position: relative;
  display: flex;
  align-items: center;

  &.large {
    height: $slider-large-height;
    line-height: $slider-large-height;

    > .slider-line {
      height: $slider-large-line;
      border-radius: calc(#{$slider-large-line} / 2);

      > .slider-inline {
        border-radius: calc(#{$slider-large-line} / 2);
      }

      > .slider-dot {
        top: calc(-10px + #{$slider-large-line} / 2);
      }

      > .step-dot {
        height: $slider-large-line;

        > li {
          width: $slider-large-line;
          height: $slider-large-line;
        }
      }
    }
  }

  &.middle {
    height: $slider-middle-height;
    line-height: $slider-middle-height;

    > .slider-line {
      height: $slider-middle-line;
      border-radius: calc(#{$slider-middle-line} / 2);

      > .slider-inline {
        border-radius: calc(#{$slider-middle-line} / 2);
      }

      > .slider-dot {
        top: calc(-10px + #{$slider-middle-line} / 2);
      }

      > .step-dot {
        height: $slider-middle-line;

        > li {
          width: $slider-middle-line;
          height: $slider-middle-line;
        }
      }
    }
  }

  &.default {
    height: $slider-default-height;
    line-height: $slider-default-height;

    > .slider-line {
      height: $slider-default-line;
      border-radius: calc(#{$slider-default-line} / 2);

      > .slider-inline {
        border-radius: calc(#{$slider-default-line} / 2);
      }

      > .slider-dot {
        top: calc(-10px + #{$slider-default-line} / 2);
      }

      > .step-dot {
        height: $slider-default-line;

        > li {
          width: $slider-default-line;
          height: $slider-default-line;
        }
      }
    }
  }

  &.mini {
    height: $slider-mini-height;
    line-height: $slider-mini-height;

    > .slider-line {
      height: $slider-mini-line;
      border-radius: calc(#{$slider-mini-line} / 2);

      > .slider-inline {
        border-radius: calc(#{$slider-mini-line} / 2);
      }

      > .slider-dot {
        top: calc(-10px + #{$slider-mini-line} / 2);
      }

      > .step-dot {
        height: $slider-mini-line;

        > li {
          width: $slider-mini-line;
          height: $slider-mini-line;
        }
      }
    }
  }

  &.disabled {
    > .slider-line {
      cursor: not-allowed;

      > .slider-inline {
        background-color: $slider-line-color-disabled;
      }

      > .slider-dot {
        border-color: $slider-line-color-disabled;
      }
    }
  }

  > .slider-line {
    width: 100%;
    background-color: $slider-line-color;
    cursor: pointer;
    position: relative;

    &.click-animation {
      > .slider-inline, > .slider-dot {
        transition: all 0.15s;
      }
    }

    &.input-number {
      margin-right: 20px;
    }

    > .slider-inline {
      height: 100%;
      background-color: $color-primary;
      position: absolute;
      z-index: 5;
      left: 0;
      top: 0;
    }

    > .slider-dot {
      width: 20px;
      height: 20px;
      box-sizing: border-box;
      border-radius: 10px;
      background-color: $color-white;
      border: 2px solid $color-primary;
      position: absolute;
      z-index: 10;
      top: -50%;
      transform: translateX(-50%);
      transform-origin: center center;

      &.active {
        transform: translateX(-50%) scale(1.2);
      }

      > span {
        display: inline-block;
        width: 100%;
        height: 100%;
      }
    }

    > .step-dot {
      width: 100%;
      height: 100%;
      position: absolute;

      > li {
        position: absolute;
        top: 0;
        background-color: $color-white;
        border-radius: 50%;
      }
    }
  }
}
